package per.jdz.demo.service;

import java.util.concurrent.TimeUnit;

import org.springframework.stereotype.Service;

import per.jdz.retryer.annotation.Retryer;

@Service
public class RetryerService {
    @Retryer(timeUnit = TimeUnit.SECONDS, result = "true", resultClass = Boolean.class, async = "jdz-async", listenerName = "jdz-listener")
    public Boolean test() {
        System.out.println("test method called");
        return true;
    }
}
